<?php

use backend\assets\DialogAsset;
DialogAsset::register($this);  // $this 代表视图对象
?>

<script>
    swal({
        title: '<?=$title?>',
        text: '<?php echo  $content?>',
        timer: <?= $time ?>,
        html:true,
        showConfirmButton: false
    },function () {
        <?php if ($url != '') { ?>
        window.location.href='<?=$url?>';
        <?php } else { ?>
        history.go(-1);
        <?php } ?>
    });
</script>







